<template>
  <div class="usage-view">
    <div class="container">
      <h1 class="page-title">使用场景</h1>
      
      <div class="usage-grid">
        <div class="usage-card" v-for="(usage, index) in usageScenarios" :key="index">
          <div class="card-icon">
            <i :class="usage.icon"></i>
          </div>
          <h3 class="card-title">{{ usage.title }}</h3>
          <p class="card-description">{{ usage.description }}</p>
          <div class="card-features">
            <span v-for="feature in usage.features" :key="feature" class="feature-tag">
              {{ feature }}
            </span>
          </div>
        </div>
      </div>

      <div class="cta-section">
        <h2>开始使用AI技术</h2>
        <p>选择适合您的使用场景，开始探索AI的无限可能</p>
        <button class="cta-button" @click="startExploring">
          立即开始
        </button>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
import { ref } from 'vue'

const usageScenarios = ref([
  {
    title: '内容创作',
    description: '利用AI技术生成高质量的文章、视频脚本和创意内容',
    icon: 'fas fa-pen-fancy',
    features: ['文章生成', '脚本创作', '创意灵感']
  },
  {
    title: '图像处理',
    description: 'AI驱动的图像编辑、风格转换和智能修复功能',
    icon: 'fas fa-image',
    features: ['智能修图', '风格转换', '背景替换']
  },
  {
    title: '数据分析',
    description: '通过AI技术快速分析和可视化复杂数据',
    icon: 'fas fa-chart-line',
    features: ['数据挖掘', '趋势分析', '智能报告']
  },
  {
    title: '自动化工作流',
    description: '构建智能化的业务流程和工作流程自动化',
    icon: 'fas fa-cogs',
    features: ['流程优化', '任务自动化', '效率提升']
  },
  {
    title: '智能客服',
    description: '基于AI的客户服务解决方案和智能问答系统',
    icon: 'fas fa-comments',
    features: ['24/7服务', '智能问答', '情感分析']
  },
  {
    title: '教育辅助',
    description: 'AI驱动的个性化学习和教育内容生成',
    icon: 'fas fa-graduation-cap',
    features: ['个性化学习', '内容生成', '智能评估']
  }
])

const startExploring = () => {
  // 跳转到帮助页面
  window.location.href = '/help'
}
</script>

<style scoped>
.usage-view {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 2rem 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.page-title {
  text-align: center;
  color: white;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.usage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.usage-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.usage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.card-icon i {
  font-size: 1.5rem;
  color: white;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
}

.card-description {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feature-tag {
  background: #f0f4ff;
  color: #667eea;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.cta-section {
  text-align: center;
  background: white;
  border-radius: 16px;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cta-section h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 1rem;
}

.cta-section p {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.cta-button {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

@media (max-width: 768px) {
  .page-title {
    font-size: 2rem;
  }
  
  .usage-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-section h2 {
    font-size: 2rem;
  }
}
</style> 